package com.example.zuoye.adapter;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.example.mylibrary.mvp.view.BaseFragment;
import com.example.zuoye.mvp.view.fragment.ListFragment;

public class ViewPageAdapter extends FragmentPagerAdapter {
    public ViewPageAdapter(@NonNull FragmentManager fm) {
        super(fm);
    }

    @NonNull
    @Override
    public BaseFragment getItem(int position) {
        return new ListFragment(position);
    }

    @Override
    public int getCount() {
        return 10;
    }
}
